//
//  CollectionViewCell.m
//  CollectionViewClassifyMenu


#import "CollectionViewCell.h"
#import "UIButton+CollectionCellStyle.h"

@implementation CollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}
/*
- (id)initWithCoder: (NSCoder *)aDecoder {
    self = [super initWithCoder: aDecoder];
    if (self) {
        self = [self sharedInit];
    }
    return self;
}

- (id)sharedInit {
    [self setup];
    return self;
}
 */

- (void)setup {
    self.button = [CYLIndexPathButton buttonWithType:UIButtonTypeCustom];
    self.button.frame = CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height);
    [self.contentView addSubview:self.button];
    [self.button generalStyle];
    [self.button homeStyle];
   // [self.button selectedStyle];
//   [self.button redStyle];
}

- (void)selectStyle {

    [self.button selectedStyle];
    //   [self.button redStyle];
}


@end
